import request from '@/utils/request'

// 查询归档合同列表
export function listDossier(query) {
  return request({
    url: '/record/dossier/list',
    method: 'get',
    params: query
  })
}

// 查询归档合同详细
export function getDossier(id) {
  return request({
    url: '/record/dossier/' + id,
    method: 'get'
  })
}

// 新增归档合同
export function addDossier(data) {
  return request({
    url: '/record/dossier',
    method: 'post',
    data: data
  })
}

// 修改归档合同
export function updateDossier(data) {
  return request({
    url: '/record/dossier',
    method: 'put',
    data: data
  })
}

// 删除归档合同
export function delDossier(id) {
  return request({
    url: '/record/dossier/' + id,
    method: 'delete'
  })
}
